package router

import (
	"github.com/gin-gonic/gin"

	"podApi/api/pod"
)

func InitPodRouter(u *gin.RouterGroup) {
	GoodsRouter := u.Group("/pod")
	{
		GoodsRouter.GET("", pod.FindPodList)
		GoodsRouter.POST("", pod.AddPod)
		GoodsRouter.GET("/:id", pod.FindPodById)
		GoodsRouter.DELETE("/:id", pod.DeletePodById)
		GoodsRouter.PUT("/:id", pod.UpdatePod)
	}
}
